package com.jbm.core.server.remote;

import com.jbm.core.common.ConnectAgent;
import com.jbm.core.common.MainServer;
import com.jbm.core.iface.IAcross;
import com.jbm.core.iface.ICallGroup;


/**
 * Created by root on 17-4-1.
 */
public class RICallGroup extends ICallGroup
{
	public RICallGroup()
	{
	}

	public RICallGroup(IAcross ia)
	{
		super(ia);
	}

	public IAcross Create()
	{
		return new ICallGroup(12,m_ca.getM_iaccount().getM_account_id());
	}

	public IAcross Start()
	{
		m_ca.Send(null,null,null,"ConfirmStart",new ICallGroup(12,m_ca.getM_iaccount().getM_account_id()),false,false,false,false, ConnectAgent.Send_Type_Any,null, MainServer.Server_type_Server,0,5000);

		ICallGroup cg = new ICallGroup(12,m_ca.getM_iaccount().getM_account_id());
//		cg.m_caddr = new ICertAddress[3];
//		cg.m_caddr[0] = new ICertAddress(null,1,0,1,null,"天津市 华苑产业园区 凯发大厦A432","300384","Tom","13001301333","02283711897");
//		cg.m_caddr[1] = new ICertAddress(null,2,0,2,null,"天津市 华苑产业园区 凯发大厦A332","300384","Jerry","13001301333","02283711897");
//		cg.m_caddr[2] = new ICertAddress(null,3,0,3,null,"天津市 华苑产业园区 凯发大厦A232","300384","Tom&Jerry","13001301333","02283711897");
		m_ca.Send(null,null,null,"SelectCertAddress",cg,false,false,false,false, ConnectAgent.Send_Type_Any,null, MainServer.Server_type_Server,0,5000);

		cg = new ICallGroup(12,m_ca.getM_iaccount().getM_account_id());
		cg.m_catalog = "家电维修|小装修|管道维修".split("\\|");
		m_ca.Send(null,null,null,"SelectCatalog",cg,false,false,false,false, ConnectAgent.Send_Type_Any,null, MainServer.Server_type_Server,0,5000);
		
		cg = new ICallGroup(12,m_ca.getM_iaccount().getM_account_id());
		cg.m_team = "张三|李四|王二麻".split("\\|");
		m_ca.Send(null,null,null,"SelectTeam",cg,false,false,false,false, ConnectAgent.Send_Type_Any,null, MainServer.Server_type_Server,0,5000);

		return null;
	}
}
